import { AnyAction } from "redux";
import { handleActions } from "redux-actions";
import initState from "../medicalcard/state";

export const medicalcard = handleActions(
  {
    "MEDICAL_CARD": (state, action: AnyAction) => {
      return { ...state, list: action.payload.list };
    }
  },
  initState
);
